 <div class="product-wrapper">
                          <div class="no-search-result" style="display: none">未找到指定的相应产品</div>
                          <div style="overflow: hidden">
                          	<?php if(empty($data)) {?>  
			                   <div class="product-item">
                                      <div class="product-card">
                                         <h4> </h4>
                                          <h5>无数据</h5>
                                      </div>
                              </div> 
			              <?php }?>  
                          <foreach name="data" item="v" key="k">
                            <if condition="$v['status'] eq 3">
                              <div class="product-item">
                                      <div class="product-card">
                                        <if condition="$role['role'] eq 1 OR $v['uid'] eq $role['aid']">
                                           <a href="{:U('Family/editlibrary',array('id'=>$v['id']))}"><span style="float:right;cursor:pointer"><b>更新</b></span></a>
                                        </if> 
                                 <a href="{:U('Family/detail',array('id'=>$v['id']))}">
                                          <img class="img-main" src="{$v.image}" />
                                     <!--     <h4> </h4> -->
                                        <div style="width:100px;text-align:center;margin:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"><b>{$v.name}</b></div>
                                           <div style="text-align:center;">
		                                           <h4 style="color:#f90;">{$status[$v['status']]}</h4>
	                                         </div>
	                             </a>
                                      </div>
                              </div> 
                              <else/>
                                <a href="{:U('Family/shenh',array('id'=>$v['id']))}">
	                              <div class="product-item">
	                                      <div class="product-card">
	                                          <img class="img-main" src="{$v.image}"/>
	                                        <!--  <h4></h4> -->
	                                         <div style="width:100px;text-align:center;margin:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"><b>{$v.name}</b></div>
	                                          <div style="text-align:center;">
		                                           <h4 style="color:#f90;">{$status[$v['status']]}</h4>
	                                          </div>
	                                      </div>
	                              </div> 
                                </a>
                              </if>
                          </foreach>
                          </div>
                      </div>
                       <div class="row">
				     	  <div class="col-xs-12 text-center">{$page}</div>		
				       </div>
				       
<script>
$(".pagination  a").click(function(){
    var page = $(this).data('p');
    ajaxlibrary(page);
});
</script>
